package org.pluslibs.framework.swingplus.factory;

public enum JButtonCommonIcons implements JButtonIconInterface {
    ADD("Add", "add.png"), EDIT("Edit", "edit.png"), DELETE("Delete", "delete.png"), DELETE_ALL("Delete All", "delete_all.png"), UP("Up", "up.png"), DOWN(
            "Down", "down.png"), SAVE("Save", "save.png"), OPEN("Open", "open.png"), WIZARD("Wizard", "wizard.png"), NEW("New", "new.png");

    private final String name;
    private final String fileName;
    private static final String ICON_DIR = "icons/";

    JButtonCommonIcons(String name, String fileName) {
        this.name = name;
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return name;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getFileName() {
        return fileName;
    }

    @Override
    public String getFileNameAbsolute() {
        return ICON_DIR + fileName;
    }
}
